<script setup lang="ts">
import { RouterView,RouterLink } from 'vue-router';

</script>

<template>
  <div class="Container">
    <div class="Container">
      <aside class="aside">
      <ul>
        <li><RouterLink to="/Pinia" active-class="active">Pinia</RouterLink></li>
        <li><RouterLink to="/Prop" active-class="active">Prop</RouterLink></li>
        <li><RouterLink to="/emit" active-class="active">Emit</RouterLink></li>
        <li><RouterLink to="/v-model" active-class="active">v-model</RouterLink></li>
        <li><RouterLink to="/provideinject" active-class="active">provide-inject</RouterLink></li>
        <li><RouterLink to="/mitt" active-class="active">mitt</RouterLink></li>
        <li><RouterLink to="/slot" active-class="active">slot</RouterLink></li>
        <li><RouterLink to="/attrs" active-class="active">attrs</RouterLink></li>
        <li><RouterLink to="/refparent" active-class="active">ref-parent</RouterLink></li>
      </ul>
      </aside>
      <main class="main">
        <RouterView></RouterView>
      </main>
    </div>
  </div>
</template>

<style scoped lang="scss">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.Container {
  display: flex;
  height: 100vh;
  width: 100vw;

  .aside {
    width: 200px;
    background-color: #e7e5e5;
    padding: 20px;
    ul{
      display: flex;
      flex-direction: column;
      li{
        list-style: none;
        background-color: #bbb9b9;
        margin-top: 5px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        a{
          display: block;
          text-decoration: none;
          color: black;
        }
        .active{color: rgb(82,136,65);}
      }

    }
  }

  .main {
    flex-grow: 1;
    background-color: #bbb9b9;
    padding: 20px;
  }
}
</style>
